/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const employeesRouter = {
  path: '/employees',
  component: Layout,
  redirect: '/employees/induction',
  name: 'Employees',
  meta: {
    title: '人事流程',
    icon: 'el-icon-s-custom'
  },
  children: [
    {
      path: 'induction',
      component: () => import('@/views/employees/index'),
      name: '员工入职',
      meta: { title: '员工入职', roles: ['20001'] }
    },
    {
      path: 'departure',
      component: () => import('@/views/employees/departure'),
      name: '员工离职',
      meta: { title: '员工离职', roles: ['21001'] }
    }
  ]
}

export default employeesRouter
